#ifndef MESSAGE_COMPUTER
#define MESSAGE_COMPUTER

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

#include "debug.h"

#include "tracker.h"
#include "messageHandler.h"
#include "messageParsing.h"
#include "peer.h"
#include "file.h"
#include "hashtable.h"



char* computeMessage(message* m, char* ip);
char* computeAnnounce(char* port, char* seedList, char* leechList, char* ip);
char* computeLook(char* criterionList);
char* computeGetFile(char* key);
char* computeUpdate(char* seedList, char* leechList, char* ip);

peer* getPeerByIp(char* ip);
void addPeer(peer* p);

#endif // MESSAGE_COMPUTER
